{include file="header.html"}
<script src="/js/ckeditor/ckeditor.js"></script>

<div class="page-header">
	<h6>
		咖啡订单管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			咖啡订单编辑
		</small>
	</h6>
</div><!-- /.page-header -->
<div class="row">
<div class="col-xs-12">
	<form class="form-horizontal" role="form" method="post" action="?app=coffee&act=order_edit" enctype="multipart/form-data">	
		<input type="hidden" id="id" name="id" value="{$row->id}" />
		<div class="profile-user-info profile-user-info-striped">
			<div class="profile-info-row">
				<div class="profile-info-name" style="background:none;"> </div>
				<div class="profile-info-value">
					<span><h4 style="text-align:right;">会员信息</h4></span>
				</div>
			</div>
			<div class="profile-info-row">
				<div class="profile-info-name"> 下单会员 </div>
				<div class="profile-info-value">
					<span>{$row->member_name}</span>
				</div>
				<div class="profile-info-name"> 电话 </div>
				<div class="profile-info-value">
					<span>{$row->mobile}</span>
				</div>
			</div>
		</div>
		<div class="profile-user-info profile-user-info-striped">
		<div class="profile-info-row">
				<div class="profile-info-name" style="background:none;"> </div>
				<div class="profile-info-value">
					<span><h4 style="text-align:right;">订单信息</h4></span>
				</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 订单ID </div>
			<div class="profile-info-value">
				<span>{$row->id}</span>
			</div>
			<div class="profile-info-name"> 订单号 </div>
			<div class="profile-info-value">
				<span>{$row->order_sn}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 桌号 </div>
			<div class="profile-info-value">
				<span>{$row->desk}</span>
			</div>
			<div class="profile-info-name"> 收货人姓名 </div>
			<div class="profile-info-value">
				<span>{$row->name}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 订单总价 </div>
			<div class="profile-info-value">
				<span><input type="text"  name="total_price" value="{$row->total_price}"disabled class="col-xs-6" /></span>
			</div>
			<div class="profile-info-name"> 折扣 </div>
			<div class="profile-info-value">
				<span><input type="text"  name="discount_price" value="{$row->discount_price}" disabled class="col-xs-6" /></span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 优惠劵 </div>
			<div class="profile-info-value">
				<span>{$row->coupon_sn}</span>
			</div>
			<div class="profile-info-name"> 下单时间 </div>
			<div class="profile-info-value">
				<span>{$row->add_time|date_format:"%Y-%m-%d %H:%I:%S"}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 咖啡店 </div>
			<div class="profile-info-value">
				<span>{$row->coffee_shop_name}</span>
			</div>
			<div class="profile-info-name"> 体验馆 </div>
			<div class="profile-info-value">
				<span>{$row->shop_name}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 父订单 SN</div>
			<div class="profile-info-value">
				<span>{$row->parent_order_sn}</span>
			</div>
			<div class="profile-info-name"> 交易号 </div>
			<div class="profile-info-value">
				<span>{$row->trade_no}</span>
			</div>
		</div> 
		<div class="profile-info-row">
			<div class="profile-info-name"> 发货时间 </div>
			<div class="profile-info-value">
				<span>{$row->shipping_time|date_format:"%Y-%m-%d %H:%I:%S"}</span>
			</div>
			<div class="profile-info-name"> 付款方式 </div>
			<div class="profile-info-value">
				<span>{$row->pay_method}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 付款时间 </div>
			<div class="profile-info-value">
				<span>{$row->pay_time|date_format:"%Y-%m-%d %H:%I:%S"}</span>
			</div>
			<div class="profile-info-name"> 订单备注 </div>
			<div class="profile-info-value">
				<span>{$row->memo}</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 状态 </div>
			<div class="profile-info-value">
				<span>

				{if  $row->status == 0} 未支付 
				{else if $row->status == 1} 已支付
				{else if $row->status == 2} 已派送
				{else if $row->status == 3} 已完成
				{else if $row->status == 4} 已评价
				{else if $row->status == -1} 取消 
				{else}{/if}</span>
			</div>
		</div>
		</div>
	<table id="simple-table" class="table table-striped table-bordered table-hover">

	<thead>
		<tr>
			<th>ID</th>
			<th>咖啡名称</th>
			<th>价格</th>
			<th>数量</th>
			<th>评价打分</th>
			<th>评价内容</th>
			<th>评价会员</th>
			<th>评价时间</th>
		</tr>
	</thead>
		{foreach from= $coffee item = cf}
		<tr>
			<td><input type="text"  name="coffee_id[]" value="{$cf->id} " style="width:50px;" disabled /></td>
			<td>{$cf->coffee_name}</td>
			<td><input type="text"  name="price[]" value="{$cf->price} " class="col-xs-2"style="width:100%;" disabled /></td>
			<td><input type="text"  name="quantity[]" value="{$cf->quantity} " class="col-xs-1"style="width:100%;" disabled/></td>
			<td>{$cf->comment_stars}星</td>
			<td>{$cf->comment_content}</td>
			<td>{$cf->member}</td>
			<td>{$cf->comment_time|date_format:"%Y-%m-%d"}</td>
		</tr>
		{/foreach}
	<tbody>
	</tbody>
	</table>
		<div class="clearfix form-actions">
			<div class="col-md-offset-3 col-md-9">
				<button class="btn btn-info" type="submit" disabled>
					<i class="ace-icon fa fa-check bigger-110"></i>
					提交
				</button>

				&nbsp; &nbsp; &nbsp;
				<button class="btn" type="reset" disabled>
					<i class="ace-icon fa fa-undo bigger-110"></i>
					重置
				</button>
			</div>
		</div>
	</form>
</div>
</div>

{include file="footer.html"}